package com.heima.api;

import com.heima.model.article.dtos.ApArticleDto;
import com.heima.model.article.pojos.ApArticle;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-article")
public interface ArticleClient {
    @PostMapping("/api/v1/article/save")
    public ApArticle saveArticle(@RequestBody ApArticleDto apArticle);

}
